package com.sdonkey.score.bean;

import java.io.Serializable;

public class UserLoginBean implements Serializable {
    private static final long serialVersionUID = -8574248221321850178L;
    private int devId;            //用户id
    private String tel_num;            //平台绑定手机号码（注册手机号码）
    private String name;            //用户昵称
    private String real_name;		//真实姓名
    private String image_url;        //用户头像
    private String sign;            //用户个性签名
    private String sex;                //用户性别
    private String marital_status;    //婚姻状况
    private String children;        //子女状况
    private String house;            //是否有房
    private String car;                //是否有车
    private String mail;            //电子邮箱
    private String birth;            //生日
    private String constellation;    //星座
    private String education;        //学历
    private String monthly_income;    //月收入
    private String annual_income;    //年收入
    private String area;            //地区
    private String ad_category;        //所选广告类别
    private String hobby;            //爱好
    private String ad_key;            //广告需求关键字

    private String credentials_type;  //实名证件类型
    private String credentials_num;    //实名证件号码

    private String login_status;    //登录状态
    private String login_terminal;    //登录终端
    private String total_balance;    //总余额
    private String balance;            //实际可用余额
    private String total_income;    //总收入
    private String credit_rating;    //信用等级
    private String pay_password;    //支付密码

    public int getDevId() {
        return devId;
    }

    public void setDevId(int devId) {
        this.devId = devId;
    }

    public String getTel_num() {
        return tel_num;
    }

    public void setTel_num(String tel_num) {
        this.tel_num = tel_num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage_url() {
        return image_url;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }


    public String getCredentials_type() {
        return credentials_type;
    }

    public void setCredentials_type(String credentials_type) {
        this.credentials_type = credentials_type;
    }

    public String getCredentials_num() {
        return credentials_num;
    }

    public void setCredentials_num(String credentials_num) {
        this.credentials_num = credentials_num;
    }


    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getMarital_status() {
        return marital_status;
    }

    public void setMarital_status(String marital_status) {
        this.marital_status = marital_status;
    }

    public String getChildren() {
        return children;
    }

    public void setChildren(String children) {
        this.children = children;
    }

    public String getHouse() {
        return house;
    }

    public void setHouse(String house) {
        this.house = house;
    }

    public String getCar() {
        return car;
    }

    public void setCar(String car) {
        this.car = car;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public String getConstellation() {
        return constellation;
    }

    public void setConstellation(String constellation) {
        this.constellation = constellation;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getMonthly_income() {
        return monthly_income;
    }

    public void setMonthly_income(String monthly_income) {
        this.monthly_income = monthly_income;
    }

    public String getAnnual_income() {
        return annual_income;
    }

    public void setAnnual_income(String annual_income) {
        this.annual_income = annual_income;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAd_category() {
        return ad_category;
    }

    public void setAd_category(String ad_category) {
        this.ad_category = ad_category;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public String getAd_key() {
        return ad_key;
    }

    public void setAd_key(String ad_key) {
        this.ad_key = ad_key;
    }

    public String getLogin_status() {
        return login_status;
    }

    public void setLogin_status(String login_status) {
        this.login_status = login_status;
    }

    public String getLogin_terminal() {
        return login_terminal;
    }

    public void setLogin_terminal(String login_terminal) {
        this.login_terminal = login_terminal;
    }

    public String getTotal_balance() {
        return total_balance;
    }

    public void setTotal_balance(String total_balance) {
        this.total_balance = total_balance;
    }

    public String getBalance() {
        if (balance != null) {
            return String.format("%.2f", Double.parseDouble(balance));
        } else {
            return "0.0";
        }

    }

    public void setBalance(String balance) {
        try {
            this.balance = String.format("%.2f", Double.parseDouble(balance));
        } catch (Exception e) {
            e.printStackTrace();
            this.balance = null;
        }

    }

    public String getTotal_income() {
        return total_income;
    }

    public void setTotal_income(String total_income) {
        this.total_income = total_income;
    }

    public String getCredit_rating() {
        return credit_rating;
    }

    public void setCredit_rating(String credit_rating) {
        this.credit_rating = credit_rating;
    }

    public String getPay_password() {
        return pay_password;
    }

    public void setPay_password(String pay_password) {
        this.pay_password = pay_password;
    }

	public String getReal_name() {
		return real_name;
	}

	public void setReal_name(String real_name) {
		this.real_name = real_name;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
